package com.xgd.phylw.service.impl;

import com.xgd.phylw.bean.*;
import com.xgd.phylw.mapper.*;
import com.xgd.phylw.service.BackPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BackPageServiceImpl implements BackPageService {
    @Autowired
    private MemberMapper memberMapper;
    @Autowired
    private OrderdMapper orderdMapper;
    @Autowired
    private MovieMapper movieMapper;
    @Autowired
    private HallMapper hallMapper;
    @Autowired
    private ScheduleMapper scheduleMapper;
    @Autowired
    public List<Member> SelectAllMember() {
        return memberMapper.selectAllMember();
    }

    public List<Orderd> SelectAllOrderd() {
        return orderdMapper.selectAllOrderd();
    }

    public List<Movie> SelectAllMovie() {
        return movieMapper.selectAllMovie();
    }

    public List<Schedule> SelectAllSchedule() {
        return scheduleMapper.selectSchedules();
    }

    public List<Movie> SelectAllMovieTemp() {
        return movieMapper.selectAllMovieAndTemp(new Movie());
    }

    public List<Movie> SelectAllMovieName() {
        return movieMapper.MovieNotMovieTemp();
    }
}
